package lottery;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.sun.istack.internal.NotNull;

@Entity
@Table
public class BetWay
{
    private int id;
    private int fatherId; // 0:top
    private String fatherName;
    private int lotteryId; //归属彩种
    private String lotteryName;
    private String name;
    private String nullable;  // "Y" or "N"
    private int bitCount;  //位数，如万千百则为3
    private String bitStr;  //位数字符串,如5,4,3代表万千百,0代表任意
    private String status; // 状态"0"-关，"1"-开
    
    public int getFatherId()
    {
        return fatherId;
    }
    public void setFatherId(int fatherId)
    {
        this.fatherId = fatherId;
    }
    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    @Column(length=40)
    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }
    @NotNull @Column(length=1)
    public String getNullable()
    {
        return nullable;
    }
    public void setNullable(String nullable)
    {
        this.nullable = nullable;
    }
    public int getBitCount()
    {
        return bitCount;
    }
    public void setBitCount(int bitCount)
    {
        this.bitCount = bitCount;
    }
    @Column(length=10)
    public String getBitStr()
    {
        return bitStr;
    }
    public void setBitStr(String bitStr)
    {
        this.bitStr = bitStr;
    }
    public int getLotteryId()
    {
        return lotteryId;
    }
    public void setLotteryId(int lotteryId)
    {
        this.lotteryId = lotteryId;
    }
    @Column(length=30)
    public String getFatherName()
    {
        return fatherName;
    }
    public void setFatherName(String fatherName)
    {
        this.fatherName = fatherName;
    }
    @Column(length=30)
    public String getLotteryName()
    {
        return lotteryName;
    }
    public void setLotteryName(String lotteryName)
    {
        this.lotteryName = lotteryName;
    }
    @Column(length=1)
    public String getStatus()
    {
        return status;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }
    
}
